package team.yidong.fenda.wx.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import team.yidong.fenda.wx.Service.WxListenService;

/**
 * Created by xuanlong on 2017/12/8.
 */
@Controller
public class WxListenController {
    @Autowired
    WxListenService wxListenService;

    @RequestMapping("/wx/listen")
    @ResponseBody
    public void wxListen(@RequestParam String answerId) {
        wxListenService.listen(answerId);

    }

}
